package com.coffee.core.enums;

public enum PlatformSystemDeployEnum {
    ORDER("order", "现货"),
    SERVICEFEE("serviceFee", "服务费"),
    SHOP("shop", "商品"),
    INTEGRAL("integral", "积分");


    private String code;
    private String name;

    private PlatformSystemDeployEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public static PlatformSystemDeployEnum getByCode(String code) {
        for (PlatformSystemDeployEnum item : values()) {
            if (item.getCode().equals(code)) {
                return item;
            }
        }
        return null;
    }
}
